/*
 * 可复用的公有布局
 */

body,
html {
    /* 视口宽度100% */
    width: 100vw;
    /* 视口宽度100% */
    height: 100vh;
}

body,
main {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    /* 垂直超出滚动 */
    overflow-y: scroll;
    /* 水平超出隐藏 */
    overflow-x: hidden;
}


/* 输入框 */

.ipt {
    width: 320px;
    height: 50px;
    padding-left: 15px;
    font-size: 18px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
}

.ipt::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#errMsg {
    height: 60px;
    line-height: 60px;
    padding-left: 10px;
    margin-top: 20px;
    font-size: 18px;
    border-radius: 5px;
    color: #c13e2c;
    background-color: #f2dede;
    display: none;
}


/* 公共提示框 */

.tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    /* 侧轴居中 */
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 150px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .8);
}

.tooltip h3 {
    border: 1px solid #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    font-size: 40px;
    margin-bottom: 10px;
}

.tooltip .rightTip {
    color: #5be998;
}

.tooltip .wrongTip {
    color: #f55;
}

.tooltip p {
    color: #fff;
}


/* 选择提示框 */

.selectMask {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
}

.selectMask .selectTip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 120px;
    border-radius: 15px;
    background-color: #fff;
    font-size: 18px;
}

.selectMask .selectTip p {
    width: 100%;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.selectMask .selectTip button {
    background-color: transparent;
    width: 48%;
    line-height: 50px;
}

.selectMask .selectTip #confirm {
    color: red;
    border-left: 1px solid #ddd;
}


/* 公共尾部 */

footer {
    display: flex;
    justify-content: space-around;
    height: 55px;
    background-color: #fff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
}

footer a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #9E9E9E;
}

footer em {
    font-size: 30px!important;
}

footer span {
    font-size: 12px;
}

footer a.active {
    color: #4E9BFF;
}


/* 运动页面的公共头部 */

.exercise {
    display: flex;
    justify-content: space-around;
    height: 44px;
    line-height: 44px;
    margin: 0 20px;
    border-bottom: 1px solid #ddd;
}

.exercise a {
    color: #A1A1A1;
    padding: 0 10px;
    font-size: 16px;
}

.exercise a.active {
    font-size: 18px;
    font-weight: bold;
    color: #4294FF;
    border-bottom: 3px solid #AAD9F7;
}


/* 圈子页面的公共头部 */

.circle {
    display: flex;
    justify-content: space-between;
    height: 50px;
    margin: 0 18px;
}

.circle-link {
    display: flex;
    justify-content: space-around;
    width: 80%;
    line-height: 50px;
    border-bottom: 1px solid #ddd;
}

.circle-link a {
    color: #A1A1A1;
    padding: 0 10px;
    font-size: 16px;
}

.circle-link a.active {
    font-size: 18px;
    font-weight: bold;
    color: #4294FF;
    border-bottom: 3px solid #AAD9F7;
}

.jump-add {
    width: 60px;
    height: 30px;
    margin-top: 10px;
    line-height: 30px;
    text-align: center;
    border-radius: 20px;
    background-color: rgb(170, 217, 247);
}

.jump-add a {
    color: #005177;
    font-size: 14px;
}